-- GENERATED SPELL FOR [Living Lasher] --


function spell0_30845(pUnit, Event) --@Dream Lash,n/a--
pUnit:FullCastSpellOnTarget(51901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30845', 500, 1)
end

function Sorts_30845(pUnit, Event)
local choix_sorts_30845 = math.random(0, 0)
if choix_sorts_30845 == 0 then
pUnit:RegisterEvent('spell0_30845', 1, 1)
end
end

function mob30845_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30845', math.random(1500, 3000), 1)
end

function mob30845_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30845_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30845_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30845, 1, 'mob30845_Action')
RegisterUnitEvent(30845, 2, 'mob30845_Leave')
RegisterUnitEvent(30845, 3, 'mob30845_Kill')
RegisterUnitEvent(30845, 4, 'mob30845_Die')
